CC = g++

LDFLAGS = ${shell pkg-config --libs opencv4 libturbojpeg gthread-2.0 libdrm libgpiod libavcodec libavformat libavutil libswscale x264 rockchip_mpp}

CFLAGS = ${shell pkg-config --cflags opencv4 libturbojpeg gthread-2.0 libdrm libgpiod libavcodec libavformat libavutil libswscale x264 rockchip_mpp}

main:main.cc camera.cc camera.hpp image_decoder.cc image_decoder.hpp image_process.cc image_process.hpp drm_hdmi_page_filp.cc drm_hdmi_page_filp.hpp waitKey.cc waitKey.hpp record.cc record.hpp
	-${CC} ${CFLAGS} $^ -o $@ ${LDFLAGS}